#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"
int main()
{
 	int a[] = { 1,2,5 };
	Heap pst;
	HeapInit(&pst);
	//HeapDestory(&pst);
	for (int i = 0;i < sizeof(a) / sizeof(int);i++)
	{
		HeapPush(&pst, a[i]);
	}
	int k = 0;
	scanf("%d", &k);
	while (k--)
	{
		printf("%d", HeapTop(&pst));
		HeapPop(&pst);

	}
	return 0;
}